<?php
namespace app;

use wechat\wx;
class Entry{
    
    protected $wx;
    public function __construct(){
        $config =[
            "token"=>"system"
        ];
        $this->wx = new wx($config);
        $this->wx->valid();
    }
    
    public function header(){
       $content = $this->wx->getData();
//        $content = "hello";
        file_put_contents('aa.php', var_export($content,true));
    }
}